package com.jzsqdy.mycat.domain;

public class Point {

    /**
     * 序列化版本号
     */
    private static final long serialVersionUID = 7445513123141980343L;
    /**
     * 测量点ID
     */
    private String pointId;
    /**
     * 测量点名称，例如1#变压器的A相电流
     */
    private String pointName;
    /**
     * 测量点简称，例如Ia
     */
    private String pointShortName;
    /**
     * 站ID
     */
    private String stationId;
    /**
     * 测量点描述
     */
    private String description;
    /**
     * 平台数据来源：0：平台采集；1：平台计算；2：外部系统，其中底层上来的数据，都为平台采集
     */
    private String dataSource;
    /**
     * 数据项ID
     */
    private String metricId;
    /**
     * 数据项编码
     */
    private String metricName;
    /**
     * 数据项别名
     */
    private String alias;
    /**
     * 数据项简称
     */
    private String shortAlias;
    /**
     * 遥测量单位
     */
    private String unit;

    /************************* point ******************************/

    /************************* metric ******************************/
    /**
     * 遥测量显示格式
     */
    private String displayForm;
    /**
     * 数据项类型：0：遥信；1：遥测
     */
    private String metricType;
    /**
     * 对应DTU的ID
     */
    private String dtuId;
    /**
     * 对应传感器的ID
     */
    private String sensorId;
    /**
     * 被监控对象ID
     */
    private String monitoredObjectId;
    /**
     * 被监控对象类型
     */
    private String monitoredObjectType;
    /**
     * 连接点ID
     */
    private Long connectivityNodeId;

    /************************* metric ******************************/

    /************************* imu ******************************/
    /**
     * 正常上传周期
     */
    private Integer uploadInterval;

    /************************ imu ***********************************/

    /************************ sensor ************************************/
    /**
     * 异常上报周期
     */
    private Integer abnormalUploadInterval;

    /************************ sensor ************************************/
    /************************ object ************************************/

    //add xxw 20170906
    private String monitoringPointId;

    public Point() {

    }

    public Point(String pointId, String pointName, String pointShortName, String stationId,
                 String description, String dataSource,
                 String metricId, String metricName, String alias, String shortAlias, String unit, String displayForm, String metricType,
                 String dtuId, String sensorId,
                 String monitoredObjectId, String monitoredObjectType, Long connectivityNodeId,
                 Integer uploadInterval, Integer abnormalUploadInterval) {
        this.pointId = pointId;
        this.pointName = pointName;
        this.pointShortName = pointShortName;
        this.stationId = stationId;
        this.description = description;
        this.dataSource = dataSource;
        this.metricId = metricId;
        this.metricName = metricName;
        this.alias = alias;
        this.shortAlias = shortAlias;
        this.unit = unit;
        this.displayForm = displayForm;
        this.metricType = metricType;
        this.dtuId = dtuId;
        this.sensorId = sensorId;
        this.monitoredObjectId = monitoredObjectId;
        this.monitoredObjectType = monitoredObjectType;
        this.connectivityNodeId = connectivityNodeId;
        this.uploadInterval = uploadInterval;
        this.abnormalUploadInterval = abnormalUploadInterval;
    }

    public Point(String pointId, String pointName, String pointShortName, String stationId,
                 String description, String dataSource,
                 String metricId, String metricName, String alias, String shortAlias, String unit, String displayForm, String metricType,
                 String dtuId, String sensorId,
                 Integer uploadInterval, Integer abnormalUploadInterval) {
        this.pointId = pointId;
        this.pointName = pointName;
        this.pointShortName = pointShortName;
        this.stationId = stationId;
        this.description = description;
        this.dataSource = dataSource;
        this.metricId = metricId;
        this.metricName = metricName;
        this.alias = alias;
        this.shortAlias = shortAlias;
        this.unit = unit;
        this.displayForm = displayForm;
        this.metricType = metricType;
        this.dtuId = dtuId;
        this.sensorId = sensorId;
        this.uploadInterval = uploadInterval;
        this.abnormalUploadInterval = abnormalUploadInterval;
    }

    /************************ object ************************************/

    public Point(String pointName, String pointShortName, String stationId,
                 String description, String dataSource,
                 String metricId, String metricName, String alias, String shortAlias, String unit, String displayForm, String metricType,
                 String dtuId, String sensorId,
                 Integer uploadInterval, Integer abnormalUploadInterval) {
        this.pointName = pointName;
        this.pointShortName = pointShortName;
        this.stationId = stationId;
        this.description = description;
        this.dataSource = dataSource;
        this.metricId = metricId;
        this.metricName = metricName;
        this.alias = alias;
        this.shortAlias = shortAlias;
        this.unit = unit;
        this.displayForm = displayForm;
        this.metricType = metricType;
        this.dtuId = dtuId;
        this.sensorId = sensorId;
        this.uploadInterval = uploadInterval;
        this.abnormalUploadInterval = abnormalUploadInterval;
    }

    public Point(String stationId,
                 String description, String dataSource,
                 String metricId, String metricName, String alias, String shortAlias, String unit, String displayForm, String metricType,
                 String dtuId, String sensorId,
                 Integer uploadInterval, Integer abnormalUploadInterval) {
        this.stationId = stationId;
        this.description = description;
        this.dataSource = dataSource;
        this.metricId = metricId;
        this.metricName = metricName;
        this.alias = alias;
        this.shortAlias = shortAlias;
        this.unit = unit;
        this.displayForm = displayForm;
        this.metricType = metricType;
        this.dtuId = dtuId;
        this.sensorId = sensorId;
        this.uploadInterval = uploadInterval;
        this.abnormalUploadInterval = abnormalUploadInterval;
    }

    /**
     * @return String
     */
    public String getPointName() {
        return pointName;
    }

    /**
     * @param pointName
     */
    public void setPointName(String pointName) {
        this.pointName = pointName;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the metricId
     */
    public String getMetricId() {
        return metricId;
    }

    /**
     * @param metricId the metricId to set
     */
    public void setMetricId(String metricId) {
        this.metricId = metricId;
    }

    /**
     * @return the metricName
     */
    public String getMetricName() {
        return metricName;
    }

    /**
     * @param metricName the metricName to set
     */
    public void setMetricName(String metricName) {
        this.metricName = metricName;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }

    /**
     * @param alias the alias to set
     */
    public void setAlias(String alias) {
        this.alias = alias;
    }

    /**
     * @return the shortAlias
     */
    public String getShortAlias() {
        return shortAlias;
    }

    /**
     * @param shortAlias the shortAlias to set
     */
    public void setShortAlias(String shortAlias) {
        this.shortAlias = shortAlias;
    }

    /**
     * @return the unit
     */
    public String getUnit() {
        return unit;
    }

    /**
     * @param unit the unit to set
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    /**
     * @return the displayForm
     */
    public String getDisplayForm() {
        return displayForm;
    }

    /**
     * @param displayForm the displayForm to set
     */
    public void setDisplayForm(String displayForm) {
        this.displayForm = displayForm;
    }

    /**
     * @return the metricType
     */
    public String getMetricType() {
        return metricType;
    }

    /**
     * @param metricType the metricType to set
     */
    public void setMetricType(String metricType) {
        this.metricType = metricType;
    }

    /**
     * @return the sensorId
     */
    public String getSensorId() {
        return sensorId;
    }

    /**
     * @param sensorId the sensorId to set
     */
    public void setSensorId(String sensorId) {
        this.sensorId = sensorId;
    }

    /**
     * @return the monitoredObjectId
     */
    public String getMonitoredObjectId() {
        return monitoredObjectId;
    }

    /**
     * @param monitoredObjectId the monitoredObjectId to set
     */
    public void setMonitoredObjectId(String monitoredObjectId) {
        this.monitoredObjectId = monitoredObjectId;
    }

    /**
     * @return the monitoredObjectType
     */
    public String getMonitoredObjectType() {
        return monitoredObjectType;
    }

    /**
     * @param monitoredObjectType the monitoredObjectType to set
     */
    public void setMonitoredObjectType(String monitoredObjectType) {
        this.monitoredObjectType = monitoredObjectType;
    }

    /**
     * @return the connectivityNodeId
     */
    public Long getConnectivityNodeId() {
        return connectivityNodeId;
    }

    /**
     * @param connectivityNodeId the connectivityNodeId to set
     */
    public void setConnectivityNodeId(Long connectivityNodeId) {
        this.connectivityNodeId = connectivityNodeId;
    }

    public String getPointId() {
        return pointId;
    }

    public void setPointId(String pointId) {
        this.pointId = pointId;
    }

    public String getDtuId() {
        return dtuId;
    }

    public void setDtuId(String dtuId) {
        this.dtuId = dtuId;
    }

    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

    public Integer getUploadInterval() {
        return uploadInterval;
    }

    public void setUploadInterval(Integer uploadInterval) {
        this.uploadInterval = uploadInterval;
    }

    public Integer getAbnormalUploadInterval() {
        return abnormalUploadInterval;
    }

    public void setAbnormalUploadInterval(Integer abnormalUploadInterval) {
        this.abnormalUploadInterval = abnormalUploadInterval;
    }


    public String getPointShortName() {
        return pointShortName;
    }

    /**
     * @param pointShortName the pointShortName to set
     */
    public void setPointShortName(String pointShortName) {
        this.pointShortName = pointShortName;
    }

    public String getStationId() {
        return stationId;
    }

    public void setStationId(String stationId) {
        this.stationId = stationId;
    }

    public String getMonitoringPointId() {
        return monitoringPointId;
    }

    public void setMonitoringPointId(String monitoringPointId) {
        this.monitoringPointId = monitoringPointId;
    }

}
